package com.cloud.mall.pms.service;

import com.cloud.mall.base.BaseResponse;
import com.cloud.mall.pms.dto.CartProduct;
import com.cloud.mall.pms.dto.promontion.PromotionProduct;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

@Api(tags = "系统自定义商品")
@RequestMapping("/portalProduct")
public interface PortalProductService {


    @ApiOperation(value = "根据编号查询商品信息")
    @GetMapping("/getPromotionProductList")
    BaseResponse<List<PromotionProduct>> getPromotionProductList(@RequestParam("ids") List<Long> ids);

    @ApiOperation("获取购物车中某个商品的规格,用于重选规格")
    @GetMapping("/getProduct/{productId}")
    BaseResponse<CartProduct> getCartProduct(@PathVariable Long productId);
}
